package Model;
import java.util.ArrayList;

public class MachineCont
{
   private static ArrayList<Machine> machines;
   
   private static MachineCont instance;
   
   private MachineCont() {
       machines = new ArrayList<>();
   }
  
   public static MachineCont getInstance(){
       if(instance == null ){
           instance = new MachineCont();
       }
       return instance;
   }
   
   public static void addMachine(Machine m){
       machines.add(m);
   }
   
   public static ArrayList<Machine> getCont()
   {
       return machines;
    }
}